\hypertarget{classduye_1_1_file_util}{\section{duye\-:\-:File\-Util Class Reference}
\label{classduye_1_1_file_util}\index{duye\-::\-File\-Util@{duye\-::\-File\-Util}}
}


{\ttfamily \#include $<$duye\-\_\-file.\-h$>$}

\subsection*{Static Public Member Functions}
\begin{DoxyCompactItemize}
\item 
static bool \hyperlink{classduye_1_1_file_util_a58cc7d4cfe9d4285bd4ec84b38c4aed3}{create\-File} (const int8 $\ast$file\-Path, const uint64 \&init\-Size=0)
\begin{DoxyCompactList}\small\item\em create file. \end{DoxyCompactList}\item 
static bool \hyperlink{classduye_1_1_file_util_aea32aaae7afdbb3e41059be201896531}{create\-Dir} (const int8 $\ast$dir\-Path)
\begin{DoxyCompactList}\small\item\em create directory. \end{DoxyCompactList}\item 
static bool \hyperlink{classduye_1_1_file_util_a71e4475d8eeac7047c865a87d9427ce7}{is\-Exist} (const int8 $\ast$file\-Path)
\begin{DoxyCompactList}\small\item\em judge file whether is exist. \end{DoxyCompactList}\item 
static bool \hyperlink{classduye_1_1_file_util_ae620e79703a255b81e0a46dcf5a5469f}{remove\-File} (const int8 $\ast$file\-Path)
\begin{DoxyCompactList}\small\item\em remove file \end{DoxyCompactList}\item 
static uint64 \hyperlink{classduye_1_1_file_util_ac7e9da4d79da5b96e9599ffea968a087}{file\-Size} (const std\-::string \&file\-Path)
\begin{DoxyCompactList}\small\item\em get file size \end{DoxyCompactList}\end{DoxyCompactItemize}


\subsection{Detailed Description}
file utility 

\subsection{Member Function Documentation}
\hypertarget{classduye_1_1_file_util_aea32aaae7afdbb3e41059be201896531}{\index{duye\-::\-File\-Util@{duye\-::\-File\-Util}!create\-Dir@{create\-Dir}}
\index{create\-Dir@{create\-Dir}!duye::FileUtil@{duye\-::\-File\-Util}}
\subsubsection[{create\-Dir}]{\setlength{\rightskip}{0pt plus 5cm}static bool duye\-::\-File\-Util\-::create\-Dir (
\begin{DoxyParamCaption}
\item[{const int8 $\ast$}]{dir\-Path}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [static]}}}\label{classduye_1_1_file_util_aea32aaae7afdbb3e41059be201896531}


create directory. 


\begin{DoxyParams}[1]{Parameters}
\mbox{\tt in}  & {\em dir\-Path} & \-: directory path. \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
true/false 
\end{DoxyReturn}
\begin{DoxyNote}{Note}

\end{DoxyNote}
\hypertarget{classduye_1_1_file_util_a58cc7d4cfe9d4285bd4ec84b38c4aed3}{\index{duye\-::\-File\-Util@{duye\-::\-File\-Util}!create\-File@{create\-File}}
\index{create\-File@{create\-File}!duye::FileUtil@{duye\-::\-File\-Util}}
\subsubsection[{create\-File}]{\setlength{\rightskip}{0pt plus 5cm}static bool duye\-::\-File\-Util\-::create\-File (
\begin{DoxyParamCaption}
\item[{const int8 $\ast$}]{file\-Path, }
\item[{const uint64 \&}]{init\-Size = {\ttfamily 0}}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [static]}}}\label{classduye_1_1_file_util_a58cc7d4cfe9d4285bd4ec84b38c4aed3}


create file. 


\begin{DoxyParams}[1]{Parameters}
\mbox{\tt in}  & {\em file\-Path} & \-: file path. \\
\hline
\mbox{\tt in}  & {\em init\-Size} & \-: initial size, default is zero. \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
true/false 
\end{DoxyReturn}
\begin{DoxyNote}{Note}

\end{DoxyNote}
\hypertarget{classduye_1_1_file_util_ac7e9da4d79da5b96e9599ffea968a087}{\index{duye\-::\-File\-Util@{duye\-::\-File\-Util}!file\-Size@{file\-Size}}
\index{file\-Size@{file\-Size}!duye::FileUtil@{duye\-::\-File\-Util}}
\subsubsection[{file\-Size}]{\setlength{\rightskip}{0pt plus 5cm}static uint64 duye\-::\-File\-Util\-::file\-Size (
\begin{DoxyParamCaption}
\item[{const std\-::string \&}]{file\-Path}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [static]}}}\label{classduye_1_1_file_util_ac7e9da4d79da5b96e9599ffea968a087}


get file size 


\begin{DoxyParams}[1]{Parameters}
\mbox{\tt in}  & {\em file\-Path} & \-: file path \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
true/false 
\end{DoxyReturn}
\begin{DoxyNote}{Note}

\end{DoxyNote}
\hypertarget{classduye_1_1_file_util_a71e4475d8eeac7047c865a87d9427ce7}{\index{duye\-::\-File\-Util@{duye\-::\-File\-Util}!is\-Exist@{is\-Exist}}
\index{is\-Exist@{is\-Exist}!duye::FileUtil@{duye\-::\-File\-Util}}
\subsubsection[{is\-Exist}]{\setlength{\rightskip}{0pt plus 5cm}static bool duye\-::\-File\-Util\-::is\-Exist (
\begin{DoxyParamCaption}
\item[{const int8 $\ast$}]{file\-Path}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [static]}}}\label{classduye_1_1_file_util_a71e4475d8eeac7047c865a87d9427ce7}


judge file whether is exist. 


\begin{DoxyParams}[1]{Parameters}
\mbox{\tt in}  & {\em file\-Path} & \-: file path \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
true/false 
\end{DoxyReturn}
\begin{DoxyNote}{Note}

\end{DoxyNote}
\hypertarget{classduye_1_1_file_util_ae620e79703a255b81e0a46dcf5a5469f}{\index{duye\-::\-File\-Util@{duye\-::\-File\-Util}!remove\-File@{remove\-File}}
\index{remove\-File@{remove\-File}!duye::FileUtil@{duye\-::\-File\-Util}}
\subsubsection[{remove\-File}]{\setlength{\rightskip}{0pt plus 5cm}static bool duye\-::\-File\-Util\-::remove\-File (
\begin{DoxyParamCaption}
\item[{const int8 $\ast$}]{file\-Path}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [static]}}}\label{classduye_1_1_file_util_ae620e79703a255b81e0a46dcf5a5469f}


remove file 


\begin{DoxyParams}[1]{Parameters}
\mbox{\tt in}  & {\em file\-Path} & \-: file path \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
true/false 
\end{DoxyReturn}
\begin{DoxyNote}{Note}

\end{DoxyNote}


The documentation for this class was generated from the following file\-:\begin{DoxyCompactItemize}
\item 
Z\-:/duye/src/duyebase/system/\hyperlink{duye__file_8h}{duye\-\_\-file.\-h}\end{DoxyCompactItemize}
